(function($, doc, room) {
	$.init();
	var userinfo = app.getState();
	var uid = userinfo.user_id;
	$.plusReady(function(){
		var chatName = plus.webview.currentWebview().chatName;
		var roomId = plus.webview.currentWebview().roomId;
		console.log(chatName);
		document.getElementById('username').innerHTML = chatName;
		document.getElementById('user_id').innerHTML = roomId;
		new QRCode('qr', {
			text: 'room@' + roomId,
			width: 300,
			height: 300,
			colorDark: '#000000',
			colorLight: '#ffffff',
			correctLevel: QRCode.CorrectLevel.H
		});
	});

}(mui, document, room));